home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 March
/
CHIP Mart 1997.iso
/
SurfCam
/
SURFCAM.Z
/
APTCL5.M5
< prev
next >
Wrap
Text File
|
1996-04-01
|
6KB
|
190 lines
name APTCL5 Multax Generator
c 00
G 2
h 00
p >8
X ->3.4 ""
Y ->3.4 ,
Z ->3.4 ,
i ->1.4 ,
j ->1.4 ,
k ->1.4 ,
z >3.4 IncFrom Z
R ->3.4 ,
F >3.3
r >3.4 IncFrom Z
f >3.3
t >2
l >2
s >4
M 2
a >3.>4
b >3.>4 ,
d >2
n >3.>4
) 00
ModalLetters f # List of letters that are modal
ModalGs # List of g codes that are modal
HCode X # X or X U 'Horizontal char.
VCode Y # Y or Y V 'Vertical char.
Dcode Z # Depth char.
FeedCode f # Feed rate char.
Comment PPRINT/ # Begin End comment char.
Spindle 3 4 5 # Cw, ccw & stop m codes
Coolant 8 9 7 # On, Off & Mist m codes
DComp 41 42 40 # Left, Right & Cancel m codes
LComp 43 49 # On & Off codes
Feed G01 # Linear move
Inc/Abs G 91 90 # Inc & Abs char. & values
Work G # Work offset register
CtrCode I J # I J or R or I J K L
Helical? N
Spaces? Y # Y or N 'Spaces between words
Incremental? N # Y or N 'Inc or abs output
CtrIncremental? N # Y or N 'Inc or abs I & J
ByQuadrants? N # Y or N 'Break arcs at quadrants
UppercaseComments? Y # Y or N 'Require uppercase comments
Drill 1 # Drilling canned/manual cycle
G81 z[Depth] F[FRate] r[Vclear]
G01 X[H] Y[V] Z[PointD] i[IVect] j[JVect] k[KVect]
end cancel
Peck 1 # Pecking canned/manual cycle
G83 z[Depth] F[Frate] r[Vclear] n[VBite]
G01 X[H] Y[V] Z[PointD] i[IVect] j[JVect] k[KVect]
end cancel
Tap 1 # Tapping canned/manual cycle
G84 z[Depth] F[Frate] r[Vclear]
G01 X[H] Y[V] Z[PointD] i[IVect] j[JVect] k[KVect]
end cancel
Ream 1 # Reaming canned/manual cycle
G85 z[Depth] F[FRate] r[Vclear]
G01 X[H] Y[V] Z[PointD] i[IVect] j[JVect] k[KVect]
end cancel
Bore 1 # Boring canned/manual cycle
G86 z[Depth] F[FRate] r[Vclear]
G01 X[H] Y[V] Z[PointD] i[IVect] j[JVect] k[KVect]
end cancel
Cancel # Cancel a canned/manual cycle
G80
end
Index X # Index the rotary table
k[RotAngle]
End
StartCode # Start of the program
p[Val1]
M98
End
1stToolChange # First tool change
G99 X[Val2] Y[Val3] Z[Val4] i[IVect] j[JVect] k[KVect]
t[Tool] l[Lcomp]
a[ToolDiam] b[ToolRad]
s[Speed] M[Direct]
M[Cool]
End
Infeed # Enable cutter comp
G[Side] d[DComp]
G01 X[H] Y[V] Z[D] i[IVect] j[JVect] k[KVect]
end
Outfeed # Disable cutter comp
G40
G01 X[H] Y[V] Z[D] i[IVect] j[JVect] k[KVect]
end
ToolChange # Secondary tool changes
M09
G00
G01 X[H] Y[V] Z[Val4] i[IVect] j[JVect] k[KVect]
t[Tool] l[Lcomp]
a[ToolDiam] b[ToolRad]
s[Speed] M[Direct]
M[Cool]
End
EndCode # End of the program
G00
G01 X[Val2] Y[Val3] Z[Val4] i[IVect] j[JVect] k[KVect]
M09
M02
M99
End
LineCode # Linear move
f[FRate]
G01 X[H] Y[V] Z[D] i[IVect] j[JVect] k[KVect]
end
RapidCode # Rapid move
G00
G01 X[H] Y[V] Z[D] i[IVect] j[JVect] k[KVect]
end
CwCode # CW circular move
c0 X[Hctr] Y[Vctr] Z[D] i0.0 j0.0 k-1.0 R[ArcRad]
G01 X[H] Y[V] Z[D] i[IVect] j[JVect] k[KVect]
end
CcwCode # CCW circular move
c0 X[Hctr] Y[Vctr] Z[D] i0.0 j0.0 k1.0 R[ArcRad]
G01 X[H] Y[V] Z[D] i[IVect] j[JVect] k[KVect]
end
Ask [Val1] " Program# : " "0000"
Ask [Val2] " X-Axis home: " " 0.0"
Ask [Val3] " Y-Axis home: " " 0.0"
Ask [Val4] " Z-Axis home: " "10.0"
Replace "c" with "CIRCLE/"
Replace "G00" with "RAPID"
Replace "G01" with "GOTO /"
Replace "G99" with "FROM /"
Replace "p" with "PARTNO/ "
Replace "(" with "PPRINT/ "
Replace "G41" with "CUTCOM/LEFT"
Replace "G42" with "CUTCOM/RIGHT"
Replace "G40" with "CUTCOM/OFF"
Replace "d" with ", "
Replace "t" with "LOADTL/"
Replace "f" with "FEDRAT/IPM,"
Replace "l" with ", OSETNO,"
Replace "s" with "SPINDL/RPM,"
Replace "M00" with "STOP"
Replace "M01" with "OPSTOP"
Replace "M02" with "END"
Replace "M03" with ", CLW"
Replace "M04" with ", CCLW"
Replace "M07" with "COOLNT/MIST"
Replace "M08" with "COOLNT/ON"
Replace "M09" with "COOLNT/OFF"
Replace "M98" with "MULTAX/ON"
Replace "M99" with "FINI"
Replace "G80" with "CYCLE /OFF"
Replace "G81" with "CYCLE /DRILL"
Replace "G83" with "CYCLE /DEEP"
Replace "G84" with "CYCLE /TAP"
Replace "G85" with "CYCLE /REAM"
Replace "G86" with "CYCLE /BORE"
Replace "n" with ", INCR, "
Replace "a" with "CUTTER/"
Replace " F" with ", IPM,"
Replace "z" with ", FEDTO,"